#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>

#define LED PORTB
#define DDRLED DDRB

int i=0,j=0;
int main(void)
{
	LED = 0x00;
	DDRLED=0xff;
	DDRA = 0xff;
	PORTA = 0xff;
   //Set up the timer1 as described in the
   //tutorial

   TCCR1B=(1<<WGM12)|(1<<CS11)|(1<<CS10);
   OCR1A=250;

   //Enable the Output Compare A interrupt
   TIMSK|=(1<<OCIE1A);

  //Enable interrupts globally

   sei();

   //Continuasly display the time
   while(1)
   {
   }

}


//The output compate interrupt handler
//We set up the timer in such a way that
//this ISR is called exactly at 1ms interval
ISR(TIMER1_COMPA_vect)
{
	
	
	LED=~LED;
	
	
		
}

